<script type="text/javascript">
    $(document).ready(function(){
        $('input:text').keyup(function(){
            var autocomplete_mode = $("input:checked").length;
            if(autocomplete_mode == 1){
                var nilai = this.value;
                $("." + this.className).val(nilai);
            }
        })
    });
</script>
<div class="head-content">
    <h3>Batch Upload Converter</h3>
    <div class="clear"></div>
</div>
<div class="sub-nav-content">
    <ul>
        <li><a href="{$config->site_url('converter/batchupload')}">1. Upload File</a></li>
        <li><a href="{$config->site_url('converter/batchupload/result/')}" class="active">2. Review &amp; Update</a></li>
    </ul>
    <div class="clear"></div>
</div>
{if $pagination.total_record > 0}
<div class="pageRow">
    <div class="pageNav">
        <ul>
            <li class="info">Menampilkan <strong>{$pagination.start} - {$pagination.end}</strong> Dari <strong>{$pagination.total_record|default:'0'}</strong> Data</li>
            <li><a href="{$config->site_url('converter/batchupload/result/'|cat:{$pagination.prev})}">&lt;</a></li>
            <li>
                <form action="{$config->site_url('converter/batchupload/process_pagination')}" method="post">
                    <input type="hidden" name="total_record" value="{$pagination.total_record|default:'0'}" />
                    <input type="text" name="page_num" size="3" maxlength="3" value="{$pagination.page_num|default:'1'}" />
                </form>
            </li>
            <li><a href="{$config->site_url('converter/batchupload/result/'|cat:{$pagination.next})}">&gt;</a></li>
        </ul>
    </div>
    <div class="clear"></div>
</div>
{/if}
<table class="table-input" width="100%">
    <tr>
        <th colspan="3">Options</th>
    </tr>
    <tr>
        <td width="25%">Gunakan mode auto complete?</td>
        <td width="10%"><label><input type="checkbox" class="autocomplete_mode" value="true" /> Ya</label></td>
        <td width="65%"><em>Fitur ini akan mengaktifkan mode auto complete untuk setiap kolom yang sama pada semua baris.</em> </td>
    </tr>
    <tr>
        <td>Enkripsi File dengan GPG?</td>
        <td><b>{$gpg_encrypt|upper}</b></td>
        <td><em>Jika YA, maka fitur ini akan mengaktifkan mode enkripsi dengan menggunakan GPG pada output yang dihasilkan.</em> </td>
    </tr>
</table>
<!-- notification template -->
{include file="base/templates/notification.html"}
<!-- end of notification template-->
<form action="{$config->site_url('converter/batchupload/process_update')}" method="post">
    <input type="hidden" name="status" value="true" />
    <div class="content-fixed">
        <table class="table-view" width="{$width|default:0}px">
            {$header_table|default:''}
            {$tr_data|default:''}
        </table>
    </div>
    <table class="table-input" width="100%">
        <tr>
            <td>
                <input type="submit" name="action" value="Update" />
                <input type="submit" name="action" value="Download" />
                <input type="submit" name="action" value="Reset" style="float: right;" /></td>
        </tr>
    </table>
</form>